package com.test39_集合应用.service;

import java.io.File;
import java.io.IOException;

/** 定义有一个数据的服务接口 */
public interface IDataService {
    public static final File OBJECT_FILE = new File("F:"+File.separator+"object.ser");
    /** 数据存储 */
    public void store(Object object) throws IOException;
    /** 数据读取 */
    public Object load() throws IOException;
    /** 根据用户查找信息 */
    public void showByUser() throws IOException;
    /** 根据角色查找信息 */
    public void showByRole() throws IOException;
    /** 根据权限查找信息 */
    public void showByPrivilege() throws IOException;
}
